package com.newenergy.wisehome.data.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import static android.R.attr.mode;

/**
 * secne
 * Created by dell on 2017/3/24.
 */

@DatabaseTable(tableName = "tb_secne_group")
public class SecneGroup {
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField(columnName = "secneId")
    private int secneId;
    @DatabaseField(columnName = "familyId")
    private String familyId;
    @DatabaseField(columnName = "groupId")
    private String groupId;
    @DatabaseField(columnName = "name")
    private String name;
    @DatabaseField(columnName = "isChecked")
    private boolean isChecked = false;
    @DatabaseField(columnName = "icName")
    private String icName = "icon_bedroom";

    @DatabaseField(columnName = "scenedata")
    private String scenedata;




    public SecneGroup() {
    }


    public SecneGroup(int secneId, String groupId, String name) {
        this.secneId = secneId;
        this.groupId = groupId;
        this.name = name;
    }


    public SecneGroup(int secneId) {
        this.secneId = secneId;
    }

    public int getId() {
        return id;
    }

    public int getSecneId() {
        return secneId;
    }

    public void setSecneId(int secneId) {
        this.secneId = secneId;
    }

    public String getFamilyId() {
        return familyId;
    }

    public void setFamilyId(String familyId) {
        this.familyId = familyId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }


    public String getIcName() {
        return icName;
    }

    public void setIcName(String icId) {
        this.icName = icName;
    }


    public String getScenedata() {
        return scenedata;
    }

    public void setScenedata(String scenedata) {
        this.scenedata = scenedata;
    }

    @Override
    public String toString() {
        return "SecneGroup{" +
                "secneId=" + secneId +
                ", groupId=" + groupId +
                ", name='" + name + '\'' +
                ", isChecked=" + isChecked +
                ", icName='" + icName + '\'' +
                ", mode=" + mode +
                ", scenedata='" + scenedata + '\'' +
                '}';
    }


    public void copyGroup(BallLight group) {
        this.setGroupId(group.getGroupId());
        this.setFamilyId(group.getFamilyId());
        this.setName(group.getName());
        this.setIcName(group.getIcName());
        this.setScenedata(group.getScenedata());
    }
}
